package com.journey;

/*
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@ServletComponentScan
@MapperScan("com.journey.mapper")
@SpringBootApplication
public class WebApplication {

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);
	}
}
*/

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/*@EnableTransactionManagement
@ServletComponentScan
@MapperScan("com.journey.mapper")
@SpringBootApplication
public class WebApplication {

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);
	}
}*/
//必须在controller包中
@SpringBootApplication
@ImportResource("classpath:config/consumer.xml") //加载xml配置文件
//@RestController
public class WebApplication {

	public static void main(String[] args) throws Exception{
		SpringApplication.run(com.journey.controller.WebApplication.class, args);
	}
}